import { HttpClient } from "../../../../service/Http/HttpClient";
//添加项目
export const addProject = (pream: string) => {
  const http = HttpClient.instance();
  return http.fetch("/api/platform/project/addProject", {
    method: "POST",
    headers: {},
    body: pream,
  });
};

//删除项目
export const deleteProject = (pream: string) => {
  const http = HttpClient.instance();
  return http.fetch("/api/platform/project/deleteProject", {
    method: "POST",
    headers: {},
    body: pream,
  });
};
//项目列表分页查询
export const selectProjectList = (pream: string) => {
  const http = HttpClient.instance();
  return http.fetch("/api/platform/project/selectProjectList", {
    method: "POST",
    headers: {},
    body: pream,
  });
};
//重置项目默认密码
export const reSetProjPassword = (pream: string) => {
  const http = HttpClient.instance();
  return http.fetch("/api/platform/project/reSetProjPassword", {
    method: "POST",
    headers: {},
    body: pream,
  });
};
//更新项目
export const updateProject = (pream: string) => {
  const http = HttpClient.instance();
  return http.fetch("/api/platform/project/updateProject", {
    method: "POST",
    headers: {},
    body: pream,
  });
};
